/**
 * Weapons for ships!
 */

package edu.gatech.spacetraderteam3.model;

/**
 * Weapon Ship Part
 * 
 * @author randal
 * @version 0.1
 */
public class ShipWeapon {

    /**
     * An array of strings that show the types of weapons
     */
    private static final String[] WEAPONTYPES = new String[] { "Boring Blaster",
            "Cosmic Blaster", "Galactic Blaster", "Lazer Beam", "Disintegrator Beam",
            "M.O.T.H.E.R.I.N.L.A.W. Missle", "Ion Cannon", "Photon Torpedo",
            "Quantum Testlaphazor", "Anti-Matter Singularity Ray Beam" };

    /**
     * Returns the name of the weapon at the level request
     * 
     * @param level
     *            Level to check for name
     * @return Weapon Name
     */
    public static String getWeaponName(int level) {
        return WEAPONTYPES[Math.max(0, Math.min(level, WEAPONTYPES.length - 1))];
    }

    /**
     * Gets the max level for weapon upgrades
     * 
     * @return max level
     */
    public static int getMaxLevel() {
        return WEAPONTYPES.length - 1;
    }
    
    /**
     * The ShipWeapon's class's string representation. You should never see this.
     * @return A brief warning.
     */
    public String toString() {
        return "ShipWeapon! You shouldn't be seeing this...";
    }

}
